package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_rscontroller_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_rscontroller_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_9 = new TagInfo("c:get", //$NON-NLS-1$
            1, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_importsLocation_2_1 = new TagInfo("java:importsLocation", //$NON-NLS-1$
            2, 1,
            new String[] {
                "package", //$NON-NLS-1$
            },
            new String[] {
                "org.example", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_15_8 = new TagInfo("c:get", //$NON-NLS-1$
            15, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_16_8 = new TagInfo("c:get", //$NON-NLS-1$
            16, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_17_8 = new TagInfo("c:get", //$NON-NLS-1$
            17, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_18_8 = new TagInfo("c:get", //$NON-NLS-1$
            18, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_19_8 = new TagInfo("c:get", //$NON-NLS-1$
            19, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_20_8 = new TagInfo("c:get", //$NON-NLS-1$
            20, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_20_47 = new TagInfo("c:get", //$NON-NLS-1$
            20, 47,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($projectName)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_format_25_1 = new TagInfo("java:format", //$NON-NLS-1$
            25, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_java_import_26_2 = new TagInfo("java:import", //$NON-NLS-1$
            26, 2,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_26_72 = new TagInfo("c:get", //$NON-NLS-1$
            26, 72,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_27_14 = new TagInfo("c:get", //$NON-NLS-1$
            27, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_27_90 = new TagInfo("c:get", //$NON-NLS-1$
            27, 90,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($projectName)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_33_2 = new TagInfo("c:include", //$NON-NLS-1$
            33, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/new.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_35_2 = new TagInfo("c:include", //$NON-NLS-1$
            35, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/save.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_37_2 = new TagInfo("c:include", //$NON-NLS-1$
            37, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/delete.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_39_2 = new TagInfo("c:include", //$NON-NLS-1$
            39, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/loadSelf.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_43_2 = new TagInfo("c:include", //$NON-NLS-1$
            43, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/loadReferencedsPson.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_45_2 = new TagInfo("c:include", //$NON-NLS-1$
            45, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/emaCompletion.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_47_2 = new TagInfo("c:include", //$NON-NLS-1$
            47, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/getPson.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_51_2 = new TagInfo("c:include", //$NON-NLS-1$
            51, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/list.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_53_2 = new TagInfo("c:include", //$NON-NLS-1$
            53, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/rscontroller/selectBox.jet", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_9); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_9.setRuntimeParent(null);
        _jettag_c_get_1_9.setTagInfo(_td_c_get_1_9);
        _jettag_c_get_1_9.doStart(context, out);
        _jettag_c_get_1_9.doEnd();
        out.write(".controller.rest;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_importsLocation_2_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "importsLocation", "java:importsLocation", _td_java_importsLocation_2_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_importsLocation_2_1.setRuntimeParent(null);
        _jettag_java_importsLocation_2_1.setTagInfo(_td_java_importsLocation_2_1);
        _jettag_java_importsLocation_2_1.doStart(context, out);
        _jettag_java_importsLocation_2_1.doEnd();
        out.write(NL);         
        out.write(NL);         
        out.write("import java.util.List;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.HashSet;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Iterator;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Set;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.io.IOException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import com.google.gson.Gson;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import com.alibaba.fastjson.JSON;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.alibaba.fastjson.JSONArray;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.alibaba.fastjson.JSONObject;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_15_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_15_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_15_8.setRuntimeParent(null);
        _jettag_c_get_15_8.setTagInfo(_td_c_get_15_8);
        _jettag_c_get_15_8.doStart(context, out);
        _jettag_c_get_15_8.doEnd();
        out.write(".base.bean.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_16_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_16_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_16_8.setRuntimeParent(null);
        _jettag_c_get_16_8.setTagInfo(_td_c_get_16_8);
        _jettag_c_get_16_8.doStart(context, out);
        _jettag_c_get_16_8.doEnd();
        out.write(".base.service.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_17_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_17_8.setRuntimeParent(null);
        _jettag_c_get_17_8.setTagInfo(_td_c_get_17_8);
        _jettag_c_get_17_8.doStart(context, out);
        _jettag_c_get_17_8.doEnd();
        out.write(".dao.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_18_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_18_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_18_8.setRuntimeParent(null);
        _jettag_c_get_18_8.setTagInfo(_td_c_get_18_8);
        _jettag_c_get_18_8.doStart(context, out);
        _jettag_c_get_18_8.doEnd();
        out.write(".domain.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_19_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_19_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_19_8.setRuntimeParent(null);
        _jettag_c_get_19_8.setTagInfo(_td_c_get_19_8);
        _jettag_c_get_19_8.doStart(context, out);
        _jettag_c_get_19_8.doEnd();
        out.write(".service.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_20_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_20_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_20_8.setRuntimeParent(null);
        _jettag_c_get_20_8.setTagInfo(_td_c_get_20_8);
        _jettag_c_get_20_8.doStart(context, out);
        _jettag_c_get_20_8.doEnd();
        out.write(".base.Cmi");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_20_47 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_20_47); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_20_47.setRuntimeParent(null);
        _jettag_c_get_20_47.setTagInfo(_td_c_get_20_47);
        _jettag_c_get_20_47.doStart(context, out);
        _jettag_c_get_20_47.doEnd();
        out.write("Controller;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.annotation.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import javax.servlet.http.HttpServletRequest;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.annotation.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.WebDataBinder;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_format_25_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_25_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_25_1.setRuntimeParent(null);
        _jettag_java_format_25_1.setTagInfo(_td_java_format_25_1);
        _jettag_java_format_25_1.doStart(context, out);
        JET2Writer _jettag_java_format_25_1_saved_out = out;
        while (_jettag_java_format_25_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("@");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_26_2 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_26_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_26_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_java_import_26_2.setTagInfo(_td_java_import_26_2);
            _jettag_java_import_26_2.doStart(context, out);
            JET2Writer _jettag_java_import_26_2_saved_out = out;
            while (_jettag_java_import_26_2.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.stereotype.Controller");  //$NON-NLS-1$        
                _jettag_java_import_26_2.handleBodyContent(out);
            }
            out = _jettag_java_import_26_2_saved_out;
            _jettag_java_import_26_2.doEnd();
            out.write("(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_26_72 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_26_72); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_26_72.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_get_26_72.setTagInfo(_td_c_get_26_72);
            _jettag_c_get_26_72.doStart(context, out);
            _jettag_c_get_26_72.doEnd();
            out.write("RestController\")");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("public class ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_27_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_27_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_27_14.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_get_27_14.setTagInfo(_td_c_get_27_14);
            _jettag_c_get_27_14.doStart(context, out);
            _jettag_c_get_27_14.doEnd();
            out.write("RestController extends Cmi");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_27_90 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_27_90); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_27_90.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_get_27_90.setTagInfo(_td_c_get_27_90);
            _jettag_c_get_27_90.doStart(context, out);
            _jettag_c_get_27_90.doEnd();
            out.write("Controller{");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            //dao等封装的对象不再需要，直接继承与CmiController
            //	<c:include template="templates/content/{$framework}/java/rscontroller/variable.jet"/>
            //	
            //	
            RuntimeTagElement _jettag_c_include_33_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_33_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_33_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_33_2.setTagInfo(_td_c_include_33_2);
            _jettag_c_include_33_2.doStart(context, out);
            _jettag_c_include_33_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_35_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_35_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_35_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_35_2.setTagInfo(_td_c_include_35_2);
            _jettag_c_include_35_2.doStart(context, out);
            _jettag_c_include_35_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_37_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_37_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_37_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_37_2.setTagInfo(_td_c_include_37_2);
            _jettag_c_include_37_2.doStart(context, out);
            _jettag_c_include_37_2.doEnd();
            out.write("\t//loadself");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_39_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_39_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_39_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_39_2.setTagInfo(_td_c_include_39_2);
            _jettag_c_include_39_2.doStart(context, out);
            _jettag_c_include_39_2.doEnd();
            out.write("\t//loadReferenceds");  //$NON-NLS-1$        
            out.write(NL);         
            //<c:include template="templates/content/{$framework}/java/rscontroller/loadReferenceds.jet"/>
            out.write("\t//TODO loadReferencedsPson，这个方法有一些问题，待修复");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_43_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_43_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_43_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_43_2.setTagInfo(_td_c_include_43_2);
            _jettag_c_include_43_2.doStart(context, out);
            _jettag_c_include_43_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_45_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_45_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_45_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_45_2.setTagInfo(_td_c_include_45_2);
            _jettag_c_include_45_2.doStart(context, out);
            _jettag_c_include_45_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_47_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_47_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_47_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_47_2.setTagInfo(_td_c_include_47_2);
            _jettag_c_include_47_2.doStart(context, out);
            _jettag_c_include_47_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            //<c:include template="templates/content/{$framework}/java/rscontroller/get.jet"/>
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_51_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_51_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_51_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_51_2.setTagInfo(_td_c_include_51_2);
            _jettag_c_include_51_2.doStart(context, out);
            _jettag_c_include_51_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_53_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_53_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_53_2.setRuntimeParent(_jettag_java_format_25_1);
            _jettag_c_include_53_2.setTagInfo(_td_c_include_53_2);
            _jettag_c_include_53_2.doStart(context, out);
            _jettag_c_include_53_2.doEnd();
            //初始化绑定器不需要，直接继承与CmiController
            //	
            //	<c:include template="templates/content/{$framework}/java/rscontroller/initBinder.jet"/>
            //	
            out.write("}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_25_1.handleBodyContent(out);
        }
        out = _jettag_java_format_25_1_saved_out;
        _jettag_java_format_25_1.doEnd();
    }
}
